import axios from '@/utils/http.js'

// 用户登录
export const loginAPI = (data) => axios.post('/login', data)

// 游客登录
export const loginTouristAPI = () => axios.post('/login/tourist')

// 退出登录
export const logoutAPI = () => axios.post('/logout')

// 用户注册
export const registerAPI = (data) => axios.post('/register', data)

// 修改用户信息
export const updateUserAPI = (data) => axios.patch('/update/user', data)
